package com.xy.job.admin.api.response

import org.springframework.data.domain.Page

class PageDTO<T>(
    var size: Int,
    var totalElements: Long,
    var totalPages: Int,
    var content: List<T>
){
    constructor(page: Page<T>) : this(
        size = page.size,
        totalElements = page.totalElements,
        totalPages = page.totalPages,
        content = page.content
    )
}